import javax.faces.bean.ManagedBean;
import javax.faces.event.ActionEvent;
import javax.faces.event.ActionListener;



@ManagedBean(name = "user")
public class User {
	
	private String nick = "";
	private String password = "";
	
	
	public String getNick() {
		return nick;
	}
	public void setNick(String nick) {
		this.nick = nick;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public boolean validateUser()
	{
			if(this.getNick().equals("a") && this.getPassword().equals("a")) return true;
			else return false;
			
	}
	
	
}
